package com.dc.ebond3.dao;

/**
 * TbAuthorization entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TbAuthorization implements java.io.Serializable {

	// Fields

	private Long id;
	private TbGroup tbGroup;
	private TbMasteraccount tbMasteraccount;
	private TbSlaveaccount tbSlaveaccount;
	private String mastername;
	private String slavename;
	private String groupname;
	private String department;

	// Constructors

	/** default constructor */
	public TbAuthorization() {
	}

	/** minimal constructor */
	public TbAuthorization(TbMasteraccount tbMasteraccount,
			TbSlaveaccount tbSlaveaccount) {
		this.tbMasteraccount = tbMasteraccount;
		this.tbSlaveaccount = tbSlaveaccount;
	}

	/** full constructor */
	public TbAuthorization(TbGroup tbGroup, TbMasteraccount tbMasteraccount,
			TbSlaveaccount tbSlaveaccount, String mastername, String slavename,
			String groupname, String department) {
		this.tbGroup = tbGroup;
		this.tbMasteraccount = tbMasteraccount;
		this.tbSlaveaccount = tbSlaveaccount;
		this.mastername = mastername;
		this.slavename = slavename;
		this.groupname = groupname;
		this.department = department;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public TbGroup getTbGroup() {
		return this.tbGroup;
	}

	public void setTbGroup(TbGroup tbGroup) {
		this.tbGroup = tbGroup;
	}

	public TbMasteraccount getTbMasteraccount() {
		return this.tbMasteraccount;
	}

	public void setTbMasteraccount(TbMasteraccount tbMasteraccount) {
		this.tbMasteraccount = tbMasteraccount;
	}

	public TbSlaveaccount getTbSlaveaccount() {
		return this.tbSlaveaccount;
	}

	public void setTbSlaveaccount(TbSlaveaccount tbSlaveaccount) {
		this.tbSlaveaccount = tbSlaveaccount;
	}

	public String getMastername() {
		return this.mastername;
	}

	public void setMastername(String mastername) {
		this.mastername = mastername;
	}

	public String getSlavename() {
		return this.slavename;
	}

	public void setSlavename(String slavename) {
		this.slavename = slavename;
	}

	public String getGroupname() {
		return this.groupname;
	}

	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}

	public String getDepartment() {
		return this.department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

}